    class Washmachine {
    //字段，属性，成员变量
    public String brand;//品牌
    public String type; //型号
    public double weight;//重量
    public double length;//长
    public double width;//宽
    public double highth;//高
    public String color;//颜色
    public void washCloth(){
        System.out.println("洗衣功能");
    }
    public void dryCloth(){
        System.out.println("脱水功能");
    }
    public void setTime(){
        System.out.println("定时功能");
    }
}
public class test {
    public static void main(String[] args) {
        Washmachine washmachine=new Washmachine();
        washmachine.brand="haier";
        washmachine.type="海尔EG100MATE2S";
        washmachine.length=595;
        washmachine.width=651;
        washmachine.highth=850;
        washmachine.washCloth();
        washmachine.dryCloth();
        washmachine.setTime();
        System.out.println(washmachine.brand);
        System.out.println(washmachine.type);
        System.out.println(washmachine.length);
        System.out.println(washmachine.width);
        System.out.println(washmachine.highth);
    }
}
